import re
import sklearn_crfsuite
from sklearn_crfsuite import metrics
import joblib
import yaml
import warnings


# 加载crf模型
def load_model():
    crf_model = sklearn_crfsuite.CRF(algorithm='lbfgs', c1=0.25, c2=0.018, max_iterations=300,
                                     all_possible_transitions=True, verbose=True)
    return crf_model
